package com.seadragon.app.dms.dao.jpa;

import com.seadragon.app.dms.dao.AutomobileDao;
import com.seadragon.app.dms.model.Automobile;

public class AutomobileDaoJpaImpl extends AbstractJpaDao implements
		AutomobileDao {

	@Override
	public void save(Automobile automobile) {
		entityManager.persist(automobile);
	}

	@Override
	public Automobile findById(long id){
		return entityManager.find(Automobile.class, new Long(id));
	}
}
